
//
//  FaceDiscernDetailViewController.m
//  NuwaRobot
//
//  Created by Kendama on 2017/12/1.
//  Copyright © 2017年 Kendama. All rights reserved.
//

#import "FaceDiscernDetailViewController.h"

@interface FaceDiscernDetailViewController ()

/** 人脸识别图背景 **/
@property(nonatomic,strong) UIView *faceView;
@property(nonatomic,strong) UIImageView *faceImageView;
@property(nonatomic,strong) UILabel *nameLabel;


@end

@implementation FaceDiscernDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}


#pragma mark --- 懒加载
- (UIView *)faceView
{
    if(!_faceView)
    {
        UIView *superView = self.view;
        _faceView = [[UIView alloc]init];
        [superView addSubview:_faceView];
        _faceView.backgroundColor = rgba(27,44,81,1);
    }
    return _faceView;
}
- (UIImageView *)faceImageView
{
    if(!_faceImageView)
    {
        UIView *superView = self.view;
        _faceImageView = [[UIImageView alloc]init];
        [superView addSubview:_faceImageView];
        _faceImageView.image = [UIImage imageNamed:@"pic1"];
    }
    return _faceImageView;
}
- (UILabel *)nameLabel
{
    if(!_nameLabel)
    {
        UIView *superView = self.view;
        _nameLabel = [[UILabel alloc]init];
        [superView addSubview:_nameLabel];
        [_nameLabel setFont:fontCommonSize];
        [_nameLabel setTextColor:rgba(143,157,189,1)];
        _nameLabel.text = @"人脸识别";
    }
    return _nameLabel;
}

- (void)masLayoutSubview
{
    __weak UIView *superView = self.view;
    [self.faceView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(superView.mas_top).with.offset(px1920Height(253));
        make.centerX.mas_equalTo(superView.mas_centerX);
        make.width.height.mas_equalTo(px1920Height(1000));
    }];
    
    [self.faceImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.faceView.mas_top).with.offset(px1920Height(100));
        make.centerX.mas_equalTo(superView.mas_centerX);
        make.width.height.mas_equalTo(px1920Height(600));
    }];
    
    [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(superView.mas_centerX);
        make.top.mas_equalTo(self.faceImageView.mas_bottom).with.offset(px1920Height(90));
    }];
}


- (void)setNavigationStyle
{
    [self setNavigationBarTitle:@"人脸识别"];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
